package io.renren.modules.echarts.controler;


import io.renren.modules.echarts.ResVo.TitleValueVo;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;


/**
 * @author Administrator
 */
@CrossOrigin
@RestController
@RequestMapping("/api")
public class InControler {

    @GetMapping("/titleValue")
    public TitleValueVo getTitleValue(){
        TitleValueVo titleValueVo = new TitleValueVo();
        titleValueVo.setDemand(1245887+(int)(1+ Math.random()*100));
        titleValueVo.setSupply(1472582+(int)(1+ Math.random()*100));
        return titleValueVo;
    }
}
